<template>
  <div class="protectBlock">
    <div class="protectBlock-left">
      <img :src="menuItem.icon" alt="" />
      <span v-for="(texts, index) in menuItem.textList" :key="index">{{
        texts
      }}</span>
    </div>
    <div class="protectBlock-right">
      <div
        class="protectBlock-right-content"
        v-for="(item, index) in menuItem.choiceList"
        :key="index"
      >
        <div class="protect-circle"></div>
        <span
          class="protect-text"
          @click="protectBlockClick(item.value, item.id)"
          >{{ item.text }}</span
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    menuItem: Object
  },
  methods: {
    protectBlockClick(value, id) {
      this.$emit('protectBlockClick', value, id)
    }
  },
}
</script>